package com.atguigu.service_msm.utils;

import io.lettuce.core.dynamic.annotation.Value;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

@Component
public class ConstantPropertiesUtils implements InitializingBean {

    private  static  String regionId="default";
    private  static  String accessKeyId="LTAI5t61oTmvoN7JNo58fQX9";
    private  static  String secret="4fCJPkQvncgr7v4wE0FjshszPEOyKZ";

//    @Value("${aliyun.sms.regionId}")
//    private String regionId;
//
//    @Value("${aliyun.sms.accessKeyId}")
//    private String accessKeyId;
//
//    @Value("${aliyun.sms.secret}")
//    private String secret;

    public static String REGION_Id;
    public static String ACCESS_KEY_ID;
    public static String SECRECT;

    @Override
    public void afterPropertiesSet() throws Exception {
        REGION_Id=regionId;
        ACCESS_KEY_ID=accessKeyId;
        SECRECT=secret;
    }
}
